From c7440aa18a595fff473e9af56f031314d545215d Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Tue, 14 Oct 2014 14:30:17 -0700 Subject: [PATCH] Tweak native-build.md example `$(OUT_DIR)` may contain spaces, so it needs to be quoted. It also needs to be expanded by the shell, not by `make`, or any quotes/backslashes in the value will cause problems. --- src/doc/native-build.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doc/native-build.md b/src/doc/native-build.md index 60a169487..ff77e4cad 100644 --- a/src/doc/native-build.md +++ b/src/doc/native-build.md @@ -115,8 +115,8 @@ CFLAGS += -m64 -fPIC endif all: - $(CC) $(CFLAGS) hello.c -c -o $(OUT_DIR)/hello.o - $(AR) crus $(OUT_DIR)/libhello.a $(OUT_DIR)/hello.o + $(CC) $(CFLAGS) hello.c -c -o "$$OUT_DIR"/hello.o + $(AR) crus "$$OUT_DIR"/libhello.a "$$OUT_DIR"/hello.o ``` -- 2.30.2